import React from "react";
import {StaticRouter} from "react-router-dom";
import {routes} from "./pages/router";
import App from "./pages/app";

const createApp = (context = {}, url)  =>{
  return (
    <StaticRouter context={context} location={url}>
      <App/>
    </StaticRouter>
  )
}

export {
  createApp,
  routes,
};
